{ include file='../Common/head_article.html' }
<body>
<div class="container-fluid">
    <form action="" method="post" enctype="multipart/form-data">
        <div class="col-sm-12 col-md-12 col-lg-12" style="margin-top: 20px;">
            <p class="article-title">文章标题</p>
            <input name="title" type="text" class="form-control" placeholder="请输入文章标题" required/>
        </div>
        <div class="col-sm-12 col-md-12 col-lg-12 article-item-top">
            <p class="article-title">所属分类</p>
            <select name="category_cid" class="form-control" required>
                <option value="">--请选择分类--</option>
                { foreach from="$cateData" item="v" }
                    <option value="{$v.cid}">{$v.cname}</option>
                { /foreach }
            </select>
        </div>
        <div class="col-sm-12 col-md-12 col-lg-12 article-item-top">
            <p class="article-title">摘要</p>
            <textarea name="digest" class="form-control quit-drag" placeholder="请输入文章摘要"></textarea>
        </div>
        <div class="col-sm-12 col-md-12 col-lg-12 article-item-top">
            <p class="article-title">图片</p>
            <input name="thumb" id="thumb" type="file"/>
        </div>
        <div class="col-sm-12 col-md-12 col-lg-12 article-item-top">
            <p class="article-title">内容</p>
            <textarea name="content" class="form-control quit-drag" placeholder="请输入文章内容" required rows="20"></textarea>
        </div>
        <div class="col-sm-12 col-md-12 col-lg-12" style="margin-top: 15px;">
            <button class="btn btn-primary" type="submit">确 定</button>
            <a class="btn btn-warning" href="javascript:history.go(-1)">返 回</a>
        </div>


    </form>
</div>
</body>
</html>